package net.sx.minemodule.mvp.fragments;

import android.os.Bundle;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.homegoods.aroutercomment.ARouterPath;
import com.kedll.library.fragment.KRefreshListFragment;

import net.sx.minemodule.R;
import net.sx.minemodule.databinding.MineFragmentMineOrderBinding;
import net.sx.minemodule.mvp.presenters.MineOrderListPresenter;

/**
 * 订单fragment
 * @author 11470
 */
@Route(path = ARouterPath.PATH_MINE_ORDER)
public class MineOrderFragment extends KRefreshListFragment<MineFragmentMineOrderBinding, MineOrderListPresenter> {

    @Override
    protected void initEvent(Bundle savedInstanceState) {
        super.initEvent(savedInstanceState);
        list.setHasFixedSize(true);
    }

    @Override
    protected MineOrderListPresenter getPresenter() {
        int type = getArguments().getInt("type");
        return new MineOrderListPresenter(type, this);
    }

    @Override
    protected int getLayout() {
        return R.layout.mine_fragment_mine_order;
    }
}
